package com.ctshk.rpc.tour.req.es;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * @author 廖胤松
 * @create 2021-05-17
 */
@Data
@ApiModel(value="TripSearchH5Req对象", description="H5行程检索请求对象")
public class TripSearchH5Req implements Serializable {

    @ApiModelProperty(value = "行程id")
    private Long id;

    @ApiModelProperty(value = "用户输入的检索条件")
    private String keyword;

    @ApiModelProperty(value = "行程天数")
    private Integer travelDays;

    @ApiModelProperty(value = "出游时间-起始")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate tripBeginDate;

    @ApiModelProperty(value = "出游时结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate tripEndDate;

    @ApiModelProperty(value = "排序，升序:asc,降序:desc")
    private String sort;

    @ApiModelProperty(value = "价格区间")
    private String tripPrice;

    @ApiModelProperty(value = "页码")
    private Integer PageNum;

    @ApiModelProperty(value = "每页数据量")
    private Integer PageSize;

}
